package com.h2cloud.controller;

import com.h2cloud.entity.Bdgameassistdo;
import com.h2cloud.service.BdgameassistdoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Bdgameassistdo)表控制层
 *
 * @author makejava
 * @since 2021-09-14 22:52:44
 */
@RestController
@RequestMapping("bdgameassistdo")
public class BdgameassistdoController {
    /**
     * 服务对象
     */
    @Resource
    private BdgameassistdoService bdgameassistdoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Bdgameassistdo selectOne(Long id) {
        return this.bdgameassistdoService.queryById(id);
    }

}